//
//  RectAutoMake.m
//  Travelling
//
//  Created by lanou on 15/12/16.
//  Copyright © 2015年 Morrrah. All rights reserved.
//

#import "RectAutoMake.h"

@implementation RectAutoMake


+ (CGRect)rectAutoMake:(CGRect)rect
{
    AppDelegate *myDelegate = [UIApplication sharedApplication].delegate;
    rect.origin.x *= myDelegate.autoSizeScaleX;
    rect.size.width *= myDelegate.autoSizeScaleX;
    rect.origin.y *= myDelegate.autoSizeScaleY;
    rect.size.height *= myDelegate.autoSizeScaleY;
    return rect;
}

@end
